package com.authentication.filter;

import jakarta.servlet.*;

import java.io.IOException;

public class ReturnFilter implements Filter {
    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        if(response.isCommitted()){
            return;
        }
        chain.doFilter(request,response);
    }
}
